<%-- 
    Document   : addPlatform
    Created on : 6-mag-2013, 22.05.53
    Author     : Giuseppe
--%>

<%@page import="java.util.List"%>
<%@page import="ejb.ArticoloUsato"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<% List<ArticoloUsato> usatiDaConfermare= (List<ArticoloUsato>)session.getAttribute("usatiDaConfermare");%>
<%@include file="wrapper.jsp" %>
<div class="container">
    <div class="row-fluid">
        <div class="span3 bs-docs-sidebar">
        <ul class="nav nav-list bs-docs-sidenav">
            <li><a href="Controller?button=visualizzaPiattaforme"> 
            <button class="btn btn-large btn-inverse btn-block"><i class="icon-white icon-th-list"></i> Tutti le piattaforme</button> </a></li>
        </ul>
      </div>   
      
 <div class="span6">
    <div class="thumbnail">
     <h3>Inserimento Piattaforma</h3>
    <br>
    <br>
    <form class="form-horizontal" action="Controller" method="POST" onsubmit="return checkPlatform(this)">
    <div class="control-group">
    <label class="control-label" for="inputNome">Nome piattaforma:</label>
    <div class="controls">
      <input name="piattaforma" type="text" id="inputNome" placeholder="Piattaforma">
    </div>
    </div>
    <label id="erroreDati" style="padding-left: 170px;color: red;"></label>
    <div class="control-group">
           <label class="control-label" style="padding-left: 170px"><button class="btn btn-inverse btn-small btn success" type="submit" value="aggiungiPiattaforma" name="button"><i class="icon-white icon-ok"></i> Aggiungi Piattaforma</button></label>
        </div>
 </form>
</div>
</div>

<div class="span3">
    <div class="thumbnail">
                 <p><b>Notes</b></p>
                 <br>
                 <% if(!usatiDaConfermare.isEmpty()){%>
                    <p> Ancora <%=usatiDaConfermare.size()%> articoli da confermare </p>
                    <br>
                    <p align="center">
                        <a href="Controller?button=modificaCancellaArtUsati&amp;confirm=s">
                            <button class="btn btn-inverse btn-small"><i class="icon-white icon-th-list"></i> Vedi Articoli da confermare</button>
                        </a>
                    </p>
                 <%}else{%>
                 <p> Nessun articolo da confermare </p>
                <%}%>      
            </div>
    </div>
            
</div>
</div>
</body>


</html>

